<template>
    <!--系统设置-违规和投诉项目维护列表-->
    <div class="public-common">
        <div class="public-title">违规和投诉项目维护列表</div>
        <div class="public-searchbox">
            <el-row>
                <el-col :span="6">
                    <el-input placeholder="请输入内容" v-model="form.test" class="input-with-select" size="mini"/>
                </el-col>
                <el-col :span="18">
                    <el-button type="primary" icon="el-icon-search" style="margin-left:10px;" size="mini">搜索</el-button>
                    <el-button type="success" icon="el-icon-edit-outline" size="mini">新建</el-button>
                    <el-button type="danger" icon="el-icon-delete" size="mini">删除</el-button>
                </el-col>
            </el-row>
        </div>
        <div class="public-scroll" style="height:calc(100% - 120px);overflow-y:scroll;">
            <el-table :data="tabledata" size="mini" border stripe  max-height="300px">
                <el-table-column
                type="selection"
                width="55px" fixed="left">
                </el-table-column>
                <el-table-column
                    label="违规/投诉项目名称">
                    <template slot-scope="scope">
                        {{scope.row.test}}
                    </template>
                </el-table-column>                
                <el-table-column
                    label="项目分类">
                    <template slot-scope="scope">
                        {{scope.row.test}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="扣分分值">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="服务性扣分">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>
                <el-table-column
                    label="项目名称说明">
                    <template slot-scope="scope">
                        {{scope.row.carType}}
                    </template>
                </el-table-column>              
                <el-table-column
                    label="操作" fixed="right" width="60px">
                    <template slot-scope="scope">
                        <el-button type="primary" size="mini">编辑</el-button>
                    </template>
                </el-table-column> 
            </el-table>
        </div>
        <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="page.now"
            :page-sizes="page.sizes"
            :page-size="page.pagesize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="page.total" class="pagination" style="bottom:0">
            </el-pagination>
    <!--dialog-->
    <el-dialog title="违规和投诉项目维护表单"  :visible.sync="dialog.isVisible" width="40%" top="10vh">
        <el-form label-width="130px" size="mini">
            <el-form-item label="违规/投诉项目">
                <el-input v-model="dialog.test"></el-input>
            </el-form-item>
            <el-form-item label="项目分类">
                <el-radio v-model="dialog.type" label="1">投诉</el-radio>
                <el-radio v-model="dialog.type" label="2">违规</el-radio>
            </el-form-item>
            <el-form-item label="备选数据">
                <el-input v-model="dialog.test"></el-input>
                <div style="font-size:12px;color:#999;line-height:20px;">数据以英文逗号分隔，例如有合格或不合格备选项，请输入：合格,不合格</div>
                
            </el-form-item>
            <el-form-item label="扣分分值">
                <el-input v-model="dialog.test" style="width:100px;margin-right:10px;"></el-input><el-checkbox v-model="dialog.checked">备选项</el-checkbox>
            </el-form-item>
            <el-form-item label="项目名称说明">
                <el-input v-model="dialog.test" type="textarea"  :rows="4"></el-input>
            </el-form-item>
        </el-form>
        
        <div class="textcenter">
            <el-button type="primary" size="small">确定</el-button>    
            <el-button type="info" @click="dialog.isVisible = false"  size="small">返回</el-button>  
        </div>
    </el-dialog>
</div>
    
</template>
<script>
export default {
    data(){
        return {
            form:{
                search:''
            },
            
            tabledata:[
                {test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'},{test:'测试数据'}
            ],
            page:{
              now:1,
              pagesize:10,
              sizes:[2,10, 20, 50, 100],
              total:0,
              key:''
            },
            dialog:{
                isVisible:false,
                test:'',
                type:'',
                checked:true
            },
            select:{
                fnaddress:[],
                icons:[],
                opentype:[
                    {label:"默认(URL调用)",value:'默认(URL调用)'},
                    {label:"全局窗口打开",value:'全局窗口打开'},
                    {label:"新窗口打开",value:'新窗口打开'}
                ],
                states:[
                    {label:"启用",value:'启用'},
                    {label:"禁用",value:'禁用'}
                ]
            }
        }
    },
    computed:{
        Managename(){
            return "[公司简介]"
        }
    },
    methods:{
        
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }
    }
    
}
</script>
<style lang="scss" scoped>
$Color:#15428F;
$Bgnavtab:rgba(255,255,255,.5);
$BgHeader:#DFE8F6;
$BorderColor:#99bbe8;
.system-hmax{
    height: 100%;
    box-sizing: border-box;
    .system-side{
        margin-top:20px;
        border: 1px dashed $BorderColor;
        transition: width .5s;
        .system-side-con{
            padding:5px 10px;
            height: calc(100% - 40px);
            .system-side-scroll{
                height:calc(100% - 30px) ;
                overflow: hidden;
            }
        }
    }
    .system-wide{
        //margin-left:10px;
        //border: 1px dashed $BorderColor;
        position: relative;
        box-sizing: border-box;
        height:100%;
        .system-wide-table{
            padding: 0 5px;
        }
    }
    .system-title{line-height: 30px;background-color: #deecfd;padding:0 10px;color:$Color; }
    
    
}
.public-common{
    .system-title{line-height: 30px;background-color: #deecfd;padding:0 10px;color:$Color; margin-bottom:10px;}
} 
</style>